﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Toolbelt.ComponentModel.DataAnnotations.Schema;

namespace HCD.Entities
{
    public class LabV : Entity<string>
    {
        [Column("ID")]
        public override string Id { get => base.Id; set => base.Id = value; }
        /// <summary>
        /// 病人标识号
        /// </summary>
        [Column("PATIENT_ID")]
        public string PatientId { get; set; }

        /// <summary>
        /// 病人本次住院标识
        /// </summary>
        [Column("VISIT_ID")]
        public string VisitId { get; set; }

        /// <summary>
        /// 检验单号 传检验单唯一标识
        /// </summary>
        [Column("LAB_TEST_NO")]
        public string LabTestNo { get; set; }

        /// <summary>
        /// 临床诊断
        /// </summary>
        [Column("CLIN_DIAG")]
        public string ClinDiag { get; set; }

        /// <summary>
        /// 项目序号
        /// </summary>
        [Column("ITEM_NO")]
        public int ItemNo { get; set; }

        /// <summary>
        /// 检验类别
        /// </summary>
        [Column("LAB_CLASS")]
        public string LabClass { get; set; }

        /// <summary>
        /// 项目代码
        /// </summary>
        [Column("LAB_ITEM_CODE")]
        public string LabItemCode { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        [Column("LAB_ITEM_NAME")]
        public string LabItemName { get; set; }

        /// <summary>
        /// 申请日期及时间
        /// </summary>
        [Column("REQ_DATE_TIME")]
        public DateTime? ReqDateTime { get; set; }

        /// <summary>
        /// 申请医生 传医生代码
        /// </summary>
        [Column("REQ_DOCTOR")]
        public string ReqDoctor { get; set; }

        /// <summary>
        /// 检验日期及时间
        /// </summary>
        [Column("LAB_DATE_TIME")]
        public DateTime? LabDateTime { get; set; }

        /// <summary>
        /// 报告日期及时间
        /// </summary>
        [Column("REPORT_DATE_TIME")]
        public DateTime? ReportDateTime { get; set; }

        /// <summary>
        /// 检验状态 0：未出报告  1：已出报告
        /// </summary>
        [Column("LAB_STATUS")]
        public string LabStatus { get; set; }
    }
}
